//https://leetcode.cn/problems/reverse-string/
void Swap(char* p1, char* p2)
{
    char tmp = *p1;
    *p1 = *p2;
    *p2 = tmp;
}

void reverseString(char* s, int sSize) {
    int begin = 0;
    int end = sSize - 1;
    while (begin < end)
    {
        Swap(&s[begin], &s[end]);
        ++begin;
        --end;
    }

}